package io.gitee.xyuesheng.day03;

public class HomeworkPhone {
    private String brand;
    private double price;

    public HomeworkPhone() {
        System.out.println("欢迎选购");
    }

    public HomeworkPhone(String brand, double price) {
        this.brand = brand;
        this.price = price;
    }

    public void call() {
        System.out.println("打电话...");
    }

    public void sendMessage() {
        System.out.println("发短信...");
    }

    public void playGame() {
        System.out.println("玩游戏...");
    }

    public String getBrand() {
        return brand;
    }

    public double getPrice() {
        return price;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public void setPrice(double price) {
        this.price = price;
    }


}
